Fix `fit-window-to-buffer' (Bug#18498).
authorKan-Ru Chen <kanru@kanru.info>
Thu, 18 Sep 2014 12:06:17 +0000 (14:06 +0200)
committermartin rudalics <rudalics@gmx.at>
Thu, 18 Sep 2014 12:06:17 +0000 (14:06 +0200)
commit2fe152da03b54af3a1e43f1f7bb26c64951b4dab
tree23491bd8db849c981d2fdeaaffeb4f1604b4e725
parentd19fa72ef1d5558217065022c1d66a1fcc469992
Fix `fit-window-to-buffer' (Bug#18498).

* window.el (fit-window-to-buffer): When counting buffer width,
count the whole visible buffer.  Correctly convert the body-height
to pixel size for window-text-pixel-size (Bug#18498).
lisp/ChangeLog
lisp/window.el